package Object_2;

import java.util.concurrent.Callable;

public class Test {
    public static void main(String[] args) {

//        String[] shapes ={"cycle","flower","rect"};
//        for(String str : shapes){
//            if(str.equals("cycle")){
//                Cycle cycle = new Cycle();
//                cycle.draw();
//            } else if(str.equals("flower")){
//                Flower flower = new Flower();
//                flower.draw();
//            } else{
//                Rect rect = new Rect();
//                rect.draw();
//            }
//        }
//        Shape shape = new Shape();
//        shape.draw();
//        Shape[] shapes = {new Cycle(),new Flower(),new Rect()};
//        for(Shape str : shapes){
//            str.draw();
//        }

    }
}
